{{csrf_field()}}
<div class="layui-form-item">
    <label for="" class="layui-form-label">房源*</label>
    <div class="layui-input-block">
        <input type="hidden" name="property_id" value="{{$showings->property_id}}">
        <input type="text" name="title" readonly value="{{$showings->title??old('title')}}" class="layui-input bg" >
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">类型</label>
    <div class="layui-input-block">
        <select name="type" disabled>
            <option value="new" @if($showings->type == 'new') selected @endif>新房</option>
            <option value="hand" @if($showings->type == 'hand') selected @endif>二手房</option>
            <option value="rental" @if($showings->type == 'rental') selected @endif>租房</option>
        </select>
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">姓名*</label>
    <div class="layui-input-block">
        <input type="text" name="name" readonly value="{{$showings->name??old('name')}}" class="layui-input bg" >
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">联系电话*</label>
    <div class="layui-input-block">
        <input type="text" name="tel" readonly value="{{$showings->tel??old('tel')}}" class="layui-input bg" >
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">带看日期*</label>
    <div class="layui-input-block">
        <input type="text" name="show_date" readonly value="{{$showings->show_date??old('show_date')}}" class="layui-input bg" >
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">带看时间*</label>
    <div class="layui-input-block">
        <input type="text" name="show_time" readonly value="{{$showings->show_time??old('show_time')}}" class="layui-input bg" >
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">其他说明*</label>
    <div class="layui-input-block">
        <input type="text" name="message" readonly value="{{$showings->message??old('message')}}" class="layui-input bg" >
    </div>
</div>

<div class="layui-form-item">
    <label for="" class="layui-form-label">状态</label>
    <div class="layui-input-block">
        <select name="status">
            <option value="F" @if($showings->status == 'F') selected @endif>待处理</option>
            <option value="D" @if($showings->status == 'D') selected @endif>处理中</option>
            <option value="T" @if($showings->status == 'T') selected @endif>已完成</option>
        </select>
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-input-block">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formDemo">确 认</button>
        <a  class="layui-btn" href="{{route('admin.member.showings')}}" >返 回</a>
    </div>
</div>